package com.bawei.router.provider

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.tencent.mmkv.MMKV

/**
 * Author: Jason Zhang
 * Date: 2024/8/21
 * Desc: 提供服务具体实现
 */
@Route(path = "/provider/token")
class RouteProviderImpl: IRouteProvider {

    override fun getLoginToken(): String {
        var tokenStr = MMKV.defaultMMKV().decodeString("token")
        if (tokenStr.isNullOrEmpty()){
            return ""
        }
        return tokenStr
    }

    override fun init(context: Context?) {

    }


}